/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author XPF
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface SportsPhysicalSkills extends BasicModel<SportsPhysicalSkills> {
  termId?: string; // 项主键
  termName?: string; // 项名称
  unit?: string; // 单位（无、秒、分秒、米、次）
  adaptGender?: string; // 适配性别（男、女、通用“默认”）
  adaptGrade?: string; // 适配年级
  termType?: string; // 项类型（体能、技能、学习表现）
  isDelete?: string; // 删除标记
}

export const sportsPhysicalSkillsList = (params?: SportsPhysicalSkills | any) =>
  defHttp.get<SportsPhysicalSkills>({ url: adminPath + '/physical/sportsPhysicalSkills/list', params });

export const sportsPhysicalSkillsListData = (params?: SportsPhysicalSkills | any) =>
  defHttp.post<Page<SportsPhysicalSkills>>({ url: adminPath + '/physical/sportsPhysicalSkills/selectListData', params });

export const sportsPhysicalSkillsForm = (params?: SportsPhysicalSkills | any) =>
  defHttp.get<SportsPhysicalSkills>({ url: adminPath + '/physical/sportsPhysicalSkills/form', params });

export const sportsPhysicalSkillsSave = (params?: any, data?: SportsPhysicalSkills | any) =>
  defHttp.postJson<SportsPhysicalSkills>({ url: adminPath + '/physical/sportsPhysicalSkills/save', params, data });

export const sportsPhysicalSkillsDelete = (params?: SportsPhysicalSkills | any) =>
  defHttp.get<SportsPhysicalSkills>({ url: adminPath + '/physical/sportsPhysicalSkills/delete', params });
